import { Transform } from 'class-transformer';
import { Util } from 'src/common/Util';

/*
 * @Author: jingfuu@163.com
 * @Date: 2024-12-04 13:59:01
 * @LastEditTime: 2024-12-08 10:19:21
 * @Description: 操作日志
 */
class SysOperLogDto {
  operId: number;
  title: string;
  businessType: number;
  method: string;
  requestMethod: string;
  operatorType: number;
  operatorTypeLabel: string;
  operName: string;
  deptName: string;
  operUrl: string;
  operIp: string;
  operLocation: string;
  operParam: string;
  jsonResult: string;
  status: number;
  errorMsg: string;
  @Transform(({ value }) => Util.convertTimeStr(value))
  operTime: string | Date;
  costTime: number;
}
export default SysOperLogDto;
